<template>
    <view :style="themeColor">
        <view class="page" >
    <view class="flex benben-position-layout flex flex-wrap align-center signIn_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-center justify-between flex-sub signIn_fd0_0'      >
            <view   class='flex flex-wrap align-center signIn_fd0_0_c0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <text class='fu-iconfont2  signIn_fd0_0_c0_c0'  >&#xe794;</text>
</view>
<text class='signIn_fd0_0_c1'  >签到</text>
    <view   class='flex flex-wrap align-center signIn_fd0_0_c0'      >
        </view>
</view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
<!---flex布局flex布局开始-->
 <view class="flex flex-direction flex-wrap align-center benben-flex-layout signIn_flex_1"    >
        <text class='signIn_fd1_0'  >连续签到七天积分翻倍</text>
    <view   class='flex flex-direction flex-wrap align-center justify-center signIn_fd1_1'      >
        <text class='signIn_fd1_1_c0'  >{{huiyuan.jifen}}</text>
<text class='signIn_fd1_1_c1'  >积分</text>
</view>
</view>
        
<!---flex布局flex布局结束-->
<!---flex布局flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout signIn_flex_2"    >
            <view   class='flex flex-direction flex-wrap align-stretch signIn_fd2_0'      >
            <view   class='flex flex-wrap align-center justify-center'      >
            <view   class='flex flex-direction flex-wrap align-center signIn_fd2_0_c0_c0'      >
        <text class='signIn_fd2_0_c0_c0_c0'  >已连续签到</text>
    <view   class='flex flex-wrap align-end'      >
        <text class='signIn_fd2_0_c0_c0_c1_c0'  >{{Durationofchec.days}}</text>
<text class='signIn_fd2_0_c0_c0_c1_c1'  >天</text>
</view>
</view>
</view>
    <view   class='flex flex-wrap align-center justify-between signIn_fd2_0_c1'      >
            <template v-for = '(item,key0) in DurationList'>
    <view   class='flex flex-wrap align-center'       :key='key0'>
            <view   class='flex flex-direction flex-wrap align-center'    v-if= "item.is_sign=='0'"  >
            <view   class='flex flex-wrap align-center justify-center signIn_fd2_0_c1_c0_c0_c0'      >
        <text class='signIn_fd2_0_c1_c0_c0_c0_c0'  >{{item.integral}}</text>
</view>
    <view   class='flex flex-wrap align-center signIn_fd2_0_c1_c0_c0_c1'      >
        <text   >第</text>
<text   >{{item.continuous_days}}</text>
<text   >天</text>
</view>
</view>
    <view   class='flex flex-direction flex-wrap align-center'    v-if= "item.is_sign=='1'"  >
            <view   class='flex flex-wrap align-center justify-center signIn_fd2_0_c1_c0_c1_c0'      >
        <text class='signIn_fd2_0_c1_c0_c0_c0_c0'  >{{item.integral}}</text>
</view>
    <view   class='flex flex-wrap align-center signIn_fd2_0_c1_c0_c0_c1'      >
        <text   >第</text>
<text   >{{item.continuous_days}}</text>
<text   >天</text>
</view>
</view>
    <view   class='flex flex-wrap align-center signIn_fd2_0_c1_c0_c2'    v-if= " key0<'6'"  >
        </view>
</view>
    </template>
    
</view>
    <view   class='flex flex-wrap align-center justify-center signIn_fd2_0_c2'      >
        <button class='signIn_fd2_0_c2_c0'  @tap.stop="DurationFunc()" v-if= " Durationofchec.is_sign1==0" >立即签到</button><button class='signIn_fd2_0_c2_c0_1'  @tap="DurationFunc()" v-if= " Durationofchec.is_sign1=='1'" >已签到</button>
</view>
</view>
</view>
        
<!---flex布局flex布局结束-->
<benben-popup v-model="popupShow1679740759306" :mask="true" :mask-close-able="true"  mode='center' >
    <!---立即签到flex布局开始-->
 <view class="flex benben-flex-layout flex-wrap align-center signIn_flex_3"    >
            <view   class='flex flex-direction flex-wrap align-center signIn_fd3_0'      >
        <image class='signIn_fd3_0_c0'  mode="aspectFit"  :src='STATIC_URL+"254.png"'></image>
<text class='signIn_fd3_0_c1'  >签到成功</text>
    <view   class='flex flex-wrap align-center signIn_fd3_0_c2'      >
        <text   >获得</text>
<text   >{{Durationofchec.integral}}</text>
<text   >积分</text>
</view>
<button class='signIn_fd3_0_c3'  @tap.stop="popupShow1679740759306=false"  >好的</button>
</view>
</view>
        
<!---立即签到flex布局结束-->
    
</benben-popup>
    
    
        </view>
    </view>
</template>
<script>
    import {validate} from '@/common/utils/validate.js'
    
    export default {
        components:{},
        
        
        data(){
			return {"popupShow1679740759306":false,"Signin":[],"Durationofchec":{"days":"","is_sign":"","is_sign1":"","integral":""},"DurationList":[],"huiyuan":{"invite_code":"","address":"","address_code":"","hobby":"","tags":"","id":"","userlevel_id":"","mobile":"","real_name":"","nickname":"","avatar":"","account":"","email":"","birthday":"","gender":"","create_time":"","user_money":"","freeze_money":"","total_consumption_money":"","score":"","_mobile":"","coupon":"","collection_count":"","browse_count":"","total_money":"","certified":"","is_pay_password":"","fuwuxingji":"","gongzuozhuangtai":"","shuzi":"","jifen":"","yajin":"","level":{"aid":"","name":"","icon":"","levelid":""},"invite_num":"","commission":"","is_deposit":"","is_account":"","dengjidaoqishijian":"","suozaidi":"","huiyuanyue":"","working_hours":"","credit_score":"","deposit":"","deposit_switch":"","withdrawal":"","account_wx":"","account_alipay":"","account_bank":""}};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
            
		},
		watch:{},
		onLoad(options){
            this.durationListFunc()
this.DurationshichangFunc()
this.huiyuanFunc()
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //签到列表
                async durationListFunc(){
                        //请求方法
    //数据验证
    
  let dataDurationList = await this.$api.get(global.apiUrls.post63d9c53695d24, {
    
  });
  
  if (dataDurationList.data.code != 1) {
    this.$message.info(dataDurationList.data.msg);
    return
  } 
  let infoDurationList = dataDurationList.data;
  this.DurationList = infoDurationList.data
  
                },
                //签到
                async DurationFunc(){
                        //请求方法
    //数据验证
    
  let dataSignin = await this.$api.dbPost(global.apiUrls.post63c60ad96c5b9, {
    
  });
  if(!dataSignin) return
  if (dataSignin.data.code != 1) {
    this.$message.info(dataSignin.data.msg);
    return
  } 
  let infoSignin = dataSignin.data;
  this.Signin = infoSignin.data
  
    this.popupShow1679740759306 = true;
                    this.durationListFunc()
                    this.DurationshichangFunc()
                    this.huiyuanFunc()
                },
                //签到时长
                async DurationshichangFunc(){
                        //请求方法
    //数据验证
    
  let dataDurationofchec = await this.$api.get(global.apiUrls.post63c602eb3451f, {
    
  });
  
  if (dataDurationofchec.data.code != 1) {
    this.$message.info(dataDurationofchec.data.msg);
    return
  } 
  let infoDurationofchec = dataDurationofchec.data;
  this.Durationofchec = infoDurationofchec.data
  
                },
                //会员
                async huiyuanFunc(){
                        //请求方法
    //数据验证
    
  let datahuiyuan = await this.$api.get(global.apiUrls.post5c78c4772da97, {
    
  });
  
  if (datahuiyuan.data.code != 1) {
    this.$message.info(datahuiyuan.data.msg);
    return
  } 
  let infohuiyuan = datahuiyuan.data;
  this.huiyuan = infohuiyuan.data
  
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:url(image-path('249.png')) no-repeat ,#fff;background-size: cover;
        }
    .signIn_flex_0{
        background:url(image-path('249.png')) no-repeat ,transparent;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .signIn_fd0_0_c1{
        font-size:36rpx;font-weight:500;color:#fff;
    }
    .signIn_fd0_0_c0_c0{
        font-size:32rpx;color:#fff;
    }
    .signIn_fd0_0_c0{
        width:120rpx;height:88rpx;
    }
    .signIn_fd0_0{
        padding:0rpx 32rpx 0rpx 32rpx;height:88rpx;
    }
    .signIn_flex_1{
        padding:70rpx 0rpx 154rpx 0rpx;
    }
    .signIn_fd1_1_c1{
        color:#FFFFFF;font-size:28rpx;font-weight:500;margin:9rpx 0rpx 0rpx 0rpx;
    }
    .signIn_fd1_1_c0{
        color:#FFFFFF;font-size:56rpx;font-weight:700;
    }
    .signIn_fd1_1{
        background:rgba(255, 255, 255, 0.16);margin:40rpx 0rpx 0rpx 0rpx;border-radius:24rpx 24rpx 24rpx 24rpx;width:296rpx;padding:12rpx 0rpx 12rpx 0rpx;
    }
    .signIn_fd1_0{
        color:#FFFFFF;font-size:48rpx;font-weight:500;
    }
    .signIn_flex_2{
        padding:0rpx 24rpx 0rpx 24rpx;
    }
    .signIn_fd2_0_c2_c0_1{
        background:rgba(248, 248, 248, 1);border-radius:44rpx 44rpx 44rpx 44rpx;font-size:34rpx;color:rgba(51, 51, 51, 1);width:487rpx;height:90rpx;line-height:90rpx;font-weight:400;
    }
    .signIn_fd2_0_c2_c0{
        background:#D6533F;border-radius:44rpx 44rpx 44rpx 44rpx;font-size:34rpx;color:#fff;width:487rpx;height:90rpx;line-height:90rpx;font-weight:400;
    }
    .signIn_fd2_0_c2{
        margin:74rpx 0rpx 0rpx 0rpx;
    }
    .signIn_fd2_0_c1_c0_c2{
        background:rgba(236, 236, 236, 1);width:22rpx;height:2rpx;background-size:100% auto;margin:0rpx 8rpx 0rpx 8rpx;
    }
    .signIn_fd2_0_c1_c0_c1_c0{
        background:url(image-path('252.png')) no-repeat ,transparent;background-size:100% auto !important;width:48rpx;height:48rpx;
    }
    .signIn_fd2_0_c1_c0_c0_c1{
        color:#8F8F8F;font-size:22rpx;line-height:39rpx;font-weight:400;margin:17rpx 0rpx 0rpx 0rpx;
    }
    .signIn_fd2_0_c1_c0_c0_c0_c0{
        color:#FFFFFF;font-size:20rpx;font-weight:400;line-height:48rpx;
    }
    .signIn_fd2_0_c1_c0_c0_c0{
        background:url(image-path('251.png')) no-repeat ,transparent;background-size:100% auto !important;width:48rpx;height:48rpx;
    }
    .signIn_fd2_0_c1{
        margin:57rpx 0rpx 0rpx 0rpx;
    }
    .signIn_fd2_0_c0_c0_c1_c1{
        color:#0B0B0B;font-size:30rpx;font-weight:700;line-height:50rpx;
    }
    .signIn_fd2_0_c0_c0_c1_c0{
        color:#0B0B0B;font-size:60rpx;font-weight:700;
    }
    .signIn_fd2_0_c0_c0_c0{
        color:#777777;font-size:30rpx;font-weight:400;line-height:40rpx;
    }
    .signIn_fd2_0_c0_c0{
        background:url(image-path('250.png')) no-repeat ,transparent;width:283rpx;background-size:100% auto !important;padding:104rpx 0rpx 25rpx 0rpx;
    }
    .signIn_fd2_0{
        background:#fff;background-size:100% auto !important;border-radius:16rpx 16rpx 16rpx 16rpx;padding:64rpx 36rpx 56rpx 35rpx;
    }
    .signIn_flex_3{
        padding:110rpx 0rpx 0rpx 0rpx;
    }
    .signIn_fd3_0_c3{
        background:#D6533F;border-radius:36rpx 36rpx 36rpx 36rpx;font-size:24rpx;color:#fff;width:240rpx;height:72rpx;line-height:72rpx;font-weight:400;margin:44rpx 0rpx 0rpx 0rpx;
    }
    .signIn_fd3_0_c2{
        color:#666666;font-size:28rpx;line-height:40rpx;font-weight:400;
    }
    .signIn_fd3_0_c1{
        color:#333333;font-size:36rpx;font-weight:500;margin:51rpx 0rpx 24rpx 0rpx;
    }
    .signIn_fd3_0_c0{
        width:389rpx;height:244rpx;margin:-101rpx 0rpx 0rpx 0rpx;
    }
    .signIn_fd3_0{
        background:url(image-path('253.png')) no-repeat;border-radius:16rpx 16rpx 16rpx 16rpx;width:560rpx;padding:0rpx 0rpx 56rpx 0rpx;
    }
</style>